package com.tfjybj.itoo.exam.provider.service;

import com.dmsdbj.itoo.tool.base.service.BaseServicePlus;
import com.tfjybj.itoo.exam.entity.EvaluationSubEntity;
import com.tfjybj.itoo.exam.model.EvaluationSubModel;

import java.util.List;


/**
 * TeEvaluationSubService接口
 * teEvaluationSub表
 *
 * @author 杨江涛
 * @version 2.0.0
 * @since 2.0.0 2018-12-18 18:19:48
 */
public interface EvaluationSubService extends BaseServicePlus<EvaluationSubEntity> {

    /**
     * 选项相关
     * @param evaluationSubEntity 选项实体
     * @author 杨江涛
     * @return true or false
     * @since 2019-1-17 17:37:39
     */
    boolean insertTeEvaluationSub(EvaluationSubEntity evaluationSubEntity);

    /**
     *  根据题干id查询sub表的选项数据
     * @param mainId 题干id
     * @author 杨江涛
     * @return sub表model
     * @since 2019-1-17 17:37:39
     */
    List<EvaluationSubModel> querySubInfoByMainId(String mainId);
}
